﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;


namespace RegExpEditor
{
   public class ControlFunctionsLibrary
    {
        /// <summary>
        /// Function fo window
        /// </summary>
        public class WindowsFunction
        {
            
            
            /// <summary>
            /// set location center screen
            /// </summary>
            /// <param name="window"></param>
            public static void SetLocationCenterScreen(Window window)
            {
                double workHeight = SystemParameters.WorkArea.Height;
                double workWidth = SystemParameters.WorkArea.Width;
                window.Top = (workHeight - window.Height) / 2;
                window.Left = (workWidth - window.Width) / 2;
            }

        }

    }
}
